void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200); // Ignored by Maple. But needed by boards using hardware serial via a USB to Serial adaptor
  pinMode(PC13, OUTPUT);
}

void loop() {
  if (Serial.available() > 0) {
    int responsedata = Serial.read();
    if (responsedata != -1) {
      
      if (responsedata == 0x02) {
        digitalWrite(PC13, LOW);
      }
      
      if (responsedata == 0x01) {
        digitalWrite(PC13, HIGH);
      }
    }
  }
}
